/**
 * 
 */
package cn.edu.sjtu.se.dslab.service;

import java.util.List;

import cn.edu.sjtu.se.dslab.project.Variable;

/**
 * @author longshaohang
 *
 */
public interface IVariableService {
	
	public Variable getVariableById(long id);

	public List<Variable> getVariableList();
	
	public boolean addVariable(Variable variable, long projectId);

	public Variable updateVariable(Variable button);
	
	public boolean deleteVariableById(long buttonId);
	
	public List<Variable> getVariableByProject(long projectId);

	public List<Variable> getValidByProject(long projectId);

	public Variable getVariableByProjectAndName(long projectId, String name);
	
	
	
}
